<br>
<div fxLayout="row" fxLayoutGap="10px">
  <button mat-raised-button [disabled]="isEditingMode" (click)="onEditClick($event.target)">编辑</button>
  <button mat-raised-button [disabled]="!isEditingMode" color="primary" (click)="onSaveClick($event.target)">保存</button>
  <app-nav-back></app-nav-back>
</div>
<p>输入信息添加洗车工</p>
<div style="display: flex; flex-direction: column; width: 800px;">
  <mat-form-field>
    <input matInput [disabled]="!isEditingMode" [(ngModel)]="phoneNumber"  placeholder="联系方式">
  </mat-form-field>
  <div *ngIf="isAddingMode">
    <mat-form-field>
      <input matInput disabled="true" [(ngModel)]="openId"  placeholder="OpenId(小程序客户)">
    </mat-form-field>
    <button mat-raised-button color="primary" (click)="getOpenIdClicked($event.target)">点击获取OpenId</button>
  </div>
  <mat-form-field>
    <input matInput [disabled]="!isEditingMode" [(ngModel)]="lastName"  placeholder="姓">
  </mat-form-field>
  <mat-form-field>
    <input matInput [disabled]="!isEditingMode" [(ngModel)]="firstName"  placeholder="名">
  </mat-form-field>
  <mat-form-field>
    <input matInput [disabled]="!isEditingMode" [(ngModel)]="identityId"  placeholder="证件号">
  </mat-form-field>
  <mat-form-field>
    <input matInput [disabled]="!isEditingMode" [(ngModel)]="levelId"  placeholder="等级">
  </mat-form-field>
  <mat-form-field>
    <input matInput [disabled]="true" [(ngModel)]="level"  placeholder="等级名称（仅显示）">
  </mat-form-field>
  <mat-form-field>
    <mat-select [disabled]="!isEditingMode" [(ngModel)]="gender" placeholder="性别">
      <mat-option value="U">保密</mat-option>
      <mat-option value="M">男</mat-option>
      <mat-option value="F">女</mat-option>
    </mat-select>
  </mat-form-field>
  <p>
  <mat-slide-toggle [disabled]="!isEditingMode" [(ngModel)]="isBusy">是否忙碌（请不要随意更改）</mat-slide-toggle>
  </p>
</div>
<div fxLayout="row" fxLayoutGap="10px">
  <button mat-raised-button [disabled]="isEditingMode" (click)="onEditClick($event.target)">编辑</button>
  <button mat-raised-button [disabled]="!isEditingMode" color="primary" (click)="onSaveClick($event.target)">保存</button>
  <app-nav-back></app-nav-back>
</div>
